package com.cambright.lotusroot
{
	public class Handler
	{
		protected function exec():void {}
		internal function $exec(command:Command, module:Module):void
		{
			args = command.args;
			_module = module;
			
			exec();
			dispose();
			
			args = null;
			_module = null;
		}
		
		private var _module:Module;
		final protected function get module():Module
		{
			return _module;
		}
		
		protected function dispose():void {}
		
		public var args:*;
		public var result:*;
	}
}